<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">运营报表</h1>
</div>
<toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            运营数据-日
        </div>
        <div class="panel-body b-b b-light">
            <div class="form-group pull-in clearfix" ng-controller="DatepickerDemoCtrl">
                <div class="col-sm-2">
                    <label>
                        <font>
                            <font>开始时间:</font>
                        </font>
                    </label>
                    <p class="input-group">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="open($event)">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="dailypaperData.StartDate"
                            is-open="opened" max-date="dailypaperData.EndDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <label>
                        <font>
                            <font>结束时间:</font>
                        </font>
                    </label>
                    <p class="input-group">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="open1($event)">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open1($event)" ng-model="dailypaperData.EndDate"
                            is-open="opened1" max-date="dailypaperData.EndDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn' ng-click="querydata()">查询</button>
                    <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>查询</button>
                </div>
                <div class="col-sm-1 pull-right" style="margin-top:25px">
                    <a href="{{gourl}}" target="_blank" ng-click="export()"class="btn btn-info btn-addon pull-right">导出</a>
                </div>
            </div>
        </div>
        <div style="position: relative;">
            <div class="table-responsive table-responsive_left">
                <div class="clearfix" style="min-width:{{dailypaperList.length*105}}px;">
                    <table ng-if="dailypaperList" class="table table1 tablemenu table-striped m-b-none pull-left">
                        <thead>
                            <tr>
                                <th colspan="2">数据/日期</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td rowspan="3" width="100px">注册</td>
                            </tr>
                            <tr>
                                <td>注册人数</td>
                            </tr>
                            <tr>
                                <td>实名人数</td>
                            </tr>


                            <tr>
                                <td rowspan="6">充值</td>
                                <td>新用户充值人数</td>
                            </tr>
                            <tr>
                                <td>老用户充值人数</td>
                            </tr>
                            <tr>
                                <td>总充值人数</td>
                            </tr>
                            <tr>
                                <td>新用户充值金额</td>
                            </tr>
                            <tr>
                                <td>老用户充值金额</td>
                            </tr>
                            <tr>
                                <td>充值总金额</td>
                            </tr>


                            <tr>
                                <td rowspan="6">提现</td>
                                <td>提现人数</td>
                            </tr>
                            <tr>
                                <td>活期转入余额金额</td>
                            </tr>
                            <tr>
                                <td>普通提现</td>
                            </tr>
                            <tr>
                                <td>快速提现</td>
                            </tr>
                            <tr>
                                <td>活期提现</td>
                            </tr>
                            <tr>
                                <td>提现总金额</td>
                            </tr>


                            <tr>
                                <td>资金流入</td>
                                <td>资金流入</td>
                            </tr>


                            <tr>
                                <td rowspan="4">还款</td>
                                <td>体验金收益到账金额</td>
                            </tr>
                            <tr>
                                <td>定期应还款金额</td>
                            </tr>
                            <tr>
                                <td>定期已还款金额</td>
                            </tr>
                            <tr>
                                <td>还款总额</td>
                            </tr>


                            <tr>
                                <td rowspan="5">余额</td>
                                <td>账户余额</td>
                            </tr>
                            <tr>
                                <td>充值未投金额</td>
                            </tr>
                            <tr>
                                <td>活期在保余额</td>
                            </tr>
                            <tr>
                                <td>新手标在保余额</td>
                            </tr>
                            <tr>
                                <td>定期在保余额</td>
                            </tr>


                            <tr>
                                <td rowspan="10">定期</td>
                                <td>新手标投资人数</td>
                            </tr>
                            <tr>
                                <td>新用户投资人数</td>
                            </tr>
                            <tr>
                                <td>新用户投资金额</td>
                            </tr>
                            <tr>
                                <td>新用户平均投资金额</td>
                            </tr>
                            <tr>
                                <td>老用户投资人数</td>
                            </tr>
                            <tr>
                                <td>老用户投资金额</td>
                            </tr>
                            <tr>
                                <td>老用户平均投资金额</td>
                            </tr>
                            <tr>
                                <td>定期总投资人数</td>
                            </tr>
                            <tr>
                                <td>定期总投资金额</td>
                            </tr>
                            <tr>
                                <td>定期总平均投资金额</td>
                            </tr>

                            <tr>
                                <td rowspan="9">活期</td>
                                <td>新用户投资人数</td>
                            </tr>
                            <tr>
                                <td>新用户投资金额</td>
                            </tr>
                            <tr>
                                <td>新用户平均投资金额</td>
                            </tr>
                            <tr>
                                <td>老用户投资人数</td>
                            </tr>
                            <tr>
                                <td>老用户投资金额</td>
                            </tr>
                            <tr>
                                <td>老用户平均投资金额</td>
                            </tr>
                            <tr>
                                <td>活期总投资人数</td>
                            </tr>
                            <tr>
                                <td>活期总投资金额</td>
                            </tr>
                            <tr>
                                <td>活期平均投资金额</td>
                            </tr>
                        </tbody>
                    </table>
                    <div ng-if="dailypaperList==''">当前无任何数据</div>
                    <table class="table table1 table-striped m-b-none pull-left" style="width: calc( 100% / {{dailypaperList.length}} - 0.2px);width: -moz-calc( 100% / {{dailypaperList.length}} - 0.2px);width: -webkit-calc( 100% / {{dailypaperList.length}} - 0.2px); " ng-repeat="obj in dailypaperList">
                        <thead>
                            <tr>
                                <!-- <th style="min-width:80px">渠道Id</th> -->
                                <th style="min-width:100px" ng-bind="obj.DateOrTotal">渠道名称</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td ng-bind="obj.RegisterAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RealNameAmountInDay||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NewUserRechargeAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.OldUserRechargeAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.AllUserRechargeAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NewUserRechargeVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.OldUserRechargeVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.AllUserRechargeVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.WithdrawalsAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.WithdrawalsVolumeCurrent||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.PuTongTXVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.KuaiSuTXVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FlexibleTXVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.WithdrawalsVolumeBalance||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.CapitalInflow||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.ExperienceGoldVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularShouldReturnVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularAlreadyReturnVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularTotalVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.AccountBalance||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NUsableCash||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.CurrentBalanceInProtection||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NoviceInProtectionVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularBalanceInProtection||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NoviceInvestAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NewUserInvestmentAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.NewUserInvestmentVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.NewUserAverageInvestmentVolume?obj.NewUserAverageInvestmentVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.OldUserInvestmentAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.OldUserInvestmentVollume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.OldUserAverageInvestmentVolume?obj.OldUserAverageInvestmentVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.RegularVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.RegularAverageVolume?obj.RegularAverageVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLNewUserInvestmentAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLNewUserInvestmentVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.FLNewUserAverageInvestmentVolume?obj.FLNewUserAverageInvestmentVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLOldUserInvestmentAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLOldUserInvestmentVollume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.FLOldUserAverageInvestmentVolume?obj.FLOldUserAverageInvestmentVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLRegularAmount||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="obj.FLRegularVolume||'-'"></td>
                            </tr>
                            <tr>
                                <td ng-bind="(obj.FLRegularAverageVolume?obj.FLRegularAverageVolume.toFixed(2):0)||'-'"></td>
                            </tr>
                            </tr>
                        </tbody>
                    </table>
                </div>

            </div>

        </div>
    </div>
</div>